<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="renderer" content="webkit">
<title>礼品券管理</title>
<link href="${base }/sysadmin/css/bootstrap.min.css?v=3.4.0"
	rel="stylesheet">
<link href="${base }/sysadmin/font-awesome/css/font-awesome.css?v=4.3.0"
	rel="stylesheet">
<link
	href="${base }/sysadmin/css/plugins/dataTables/dataTables.bootstrap.css"
	rel="stylesheet">
<link href="${base }/sysadmin/css/plugins/iCheck/custom.css"
	rel="stylesheet">
<link href="${base }/sysadmin/css/animate.css" rel="stylesheet">
<link href="${base }/sysadmin/css/style.css?v=2.2.0" rel="stylesheet">
</head>
<body>
	<div id="wrapper">
		<%@ include file="../include/left.jsp"%>
		<div id="page-wrapper" class="gray-bg dashbard-1">
			<%@ include file="../include/head.jsp"%>
			<div class="row wrapper border-bottom white-bg page-heading">
				<div class="col-lg-10">
					<h2>礼品券管理</h2>
				</div>
				<div class="col-lg-2"></div>
			</div>
			<div class="wrapper wrapper-content animated fadeInRight">


				<div class="row">

					<div class="col-lg-12">
						<div class="ibox float-e-margins">
							<div class="ibox-title">
								<h5>礼品券管理</h5>
							</div>
							<div class="ibox-content">
								<div class="row">
									<div class="col-lg-4">
										<a href="${base }/sysadmin/ticket.do?m=a"
											class="btn btn-primary ">添加</a>
										<!-- 	<a href="javascript:void(0);" class="btn btn-primary ">删除</a> -->
									</div>
									<form action="${base }/admin/proclass.do" method="post">
										<div class="col-lg-8" style="float: right; text-align: right;">
											<label> <input type="search" name="key"
												required="required" value="${key }" placeholder="输入券号关键字"
												class="form-control">
											</label>&nbsp;&nbsp;
											<button class="btn btn-primary ">立即查询</button>
											<c:if test="${key ne null }">
												<a class="btn btn-primary "
													href="${base }/sysadmin/ticket.do">显示全部</a>
											</c:if>
										</div>
									</form>
								</div>

								<table class="table table-striped table-bordered table-hover ">
									<thead>
										<tr>
											<!-- <th><input type="checkbox" class="i-checks">&nbsp;全选</th> -->
											<th>礼品券号</th>
											<th>礼品券密</th>
											<th>发布者</th>
											<th>发布时间</th>
											<th>常用操作</th>
										</tr>
									</thead>
									<tbody>
										<c:forEach items="${list }" var="item">
											<tr class="gradeA">
												<!-- <td width="70"><input type="checkbox" class="i-checks"></td> -->
												<td class="center">${item.ticket_no }</td>
												<td>${item.ticket_pass }</td>
												<td>${item.creator }</td>
												<td class="center"></td>
												<td><a href="${base }/sysadmin/ticket.do?m=info&id=${item.id}">【修改】</a><a
													onclick="if(confirm('确定要删除此项?')){return true;}else{return false;}"
													href="${base }/sysadmin/ticket.do?m=d&id=${item.id}">【删除】</a></td>
											</tr>
										</c:forEach>
								</table>
								<div class="row">
									<div class="col-lg-12">
<%-- 										<jsp:include page="../common/page.jsp" flush="true"> --%>
											<jsp:param value="ticket.do?key=${key }" name="action" />
										</jsp:include>
									</div>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
			<%@ include file="../include/bottom.jsp"%>
		</div>
	</div>
	<script src="${base }/sysadmin/js/jquery-2.1.1.min.js"></script>
	<script src="${base }/sysadmin/js/bootstrap.min.js?v=3.4.0"></script>
	<script src="${base }/sysadmin/js/plugins/metisMenu/jquery.metisMenu.js"></script>
	<script
		src="${base }/sysadmin/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>

	<script src="${base }/sysadmin/js/plugins/jeditable/jquery.jeditable.js"></script>

	<!-- Data Tables -->
	<script src="${base }/sysadmin/js/plugins/dataTables/jquery.dataTables.js"></script>
	<script
		src="${base }/sysadmin/js/plugins/dataTables/dataTables.bootstrap.js"></script>

	<!-- Custom and plugin javascript -->
	<script src="${base }/sysadmin/js/hplus.js?v=2.2.0"></script>
	<script src="${base }/sysadmin/js/plugins/pace/pace.min.js"></script>

	<!-- iCheck -->
	<script src="${base }/sysadmin/js/plugins/iCheck/icheck.min.js"></script>
	<script>
		$(document).ready(function() {
			$('.i-checks').iCheck({
				checkboxClass : 'icheckbox_square-green',
				radioClass : 'iradio_square-green',
			});
		});
	</script>
	<!-- Page-Level Scripts -->
	<script>
		$(document).ready(function() {

		});
	</script>

</body>

</html>
